Working With Movie Spatial Characteristics
The Movie Toolbox provides a number of functions that allow your application to determine and change the display characteristics of movies and tracks. These functions are discussed in the following sections. Before using any of these functions, you should be familiar with the way in which the Movie Toolbox displays movies. See the discussion of spatial properties in "About Movies" on page 2-11.You can use the
SetMovieGWorld
andGetMovieGWorld
functions to work with a movie's graphics world. See Inside Macintosh: Imaging for more information about graphics worlds.Your application can work with a movie's matrix by calling the
GetMovieMatrix
andSetMovieMatrix
functions, and it can work with a track's matrix with theGetTrackMatrix
andSetTrackMatrix
functions. Then you can perform operations on matrices with the Movie Toolbox's matrix functions described in "Matrix Functions" beginning on page 2-321.The following functions affect the displayed movie and its tracks in the final display coordinate system. The
SetMovieGWorld
andGetMovieGWorld
functions let you work with a movie's display destination. TheGetMovieBox
andSetMovieBox
functions allow you to work with a movie's boundary rectangle and its associated transformations. Alternatively, you can use theGetMovieMatrix
andSetMovieMatrix
functions to work directly with a movie's transformation matrix. TheGetMovieDisplayBoundsRgn
function determines a movie's boundary region at the current movie time. On the other hand, theGetMovieSegmentDisplayBoundsRgn
function determines a movie's boundary region over a specified time segment. You can use theGetMovieDisplayClipRgn
andSetMovieDisplayClipRgn
functions to work with a movie's display clipping region.The
GetTrackDisplayBoundsRgn
andGetTrackSegmentDisplayBoundsRgn
functions determine a track's final boundary region. You can use theGetTrackLayer
andSetTrackLayer
functions to control the drawing order of tracks within a movie.A number of functions affect a movie's display boundaries before any display transformations--these functions operate in the movie's display coordinate system. You can use the
GetMovieClipRgn
andSetMovieClipRgn
functions to work with a movie's clipping region--that is, the clipping region that is applied before the movie display transformation. Use theGetMovieBoundsRgn
function to determine a movie's boundary region at the current movie time.Use the
GetTrackMovieBoundsRgn
function to work with a track's boundary region after matrix transformations have placed the track into the movie's display system. TheSetTrackMatrix
andGetTrackMatrix
functions let you define a track's matrix transformations.The Movie Toolbox provides several functions that affect a track's display boundaries--these functions operate in the track's display coordinate system before any other display transformations are applied. The
GetTrackDimensions
andSetTrackDimensions
functions allow you to establish a track's coordinate system and to establish a track's source rectangle.
You can use the
- Note
- A track's source rectangle defines the coordinate system of the track. You specify the dimensions of the rectangle by providing the coordinates of the lower-right corner of the rectangle. The Movie Toolbox sets the upper-left corner to (0,0) in the track's coordinate system.
![]()
GetTrackBoundsRgn
function to determine a track's boundary region. TheGetTrackClipRgn
andSetTrackClipRgn
functions let you work with a track's clipping region. You can use theGetTrackMatte
andSetTrackMatte
functions to establish a track's matte. TheDisposeMatte
function allows you to dispose of a matte once you are finished with it.
Subtopics
- SetMovieGWorld
- GetMovieGWorld
- SetMovieBox
- GetMovieBox
- GetMovieDisplayBoundsRgn
- GetMovieSegmentDisplayBoundsRgn
- SetMovieDisplayClipRgn
- GetMovieDisplayClipRgn
- GetTrackDisplayBoundsRgn
- GetTrackSegmentDisplayBoundsRgn
- SetTrackLayer
- GetTrackLayer
- SetMovieMatrix
- GetMovieMatrix
- GetMovieBoundsRgn
- GetTrackMovieBoundsRgn
- SetMovieClipRgn
- GetMovieClipRgn
- SetTrackMatrix
- GetTrackMatrix
- GetTrackBoundsRgn
- SetTrackDimensions
- GetTrackDimensions
- SetTrackClipRgn
- GetTrackClipRgn
- SetTrackMatte
- GetTrackMatte
- DisposeMatte